home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 737 / prlabel / makefile < prev    next >
Makefile  |  1995-03-18  |  1KB  |  63 lines

  1. #COPT = -d3 
  2. POPT = -dDOPROTOS
  3.  
  4. #HEATH
  5. # Use the other OFILES to link with Heath file requester
  6. OFILES = main.o PrL.o GetAFile.o MyIO.o
  7. #OFILES = main.o PrL.o GetAFile.o MyIO.o safeclose.o getfile.o
  8.  
  9.  
  10. LFILES = LIB:lc.lib LIB:amiga.lib LIB:stslib.lib
  11. IFILES = PrLabel.h
  12. PFILES = main_protos.h PrL_protos.h GetAFile_protos.h MyIO_protos.h
  13.  
  14. #
  15. # The executable 'PrLabel' depends on the object files
  16. # Link these with the library files.
  17. #
  18. PrLabel     : $(OFILES) 
  19.    link FROM LIB:c.o LIB:tinymain.o $(OFILES) TO PrLabel LIB $(LFILES) VERBOSE
  20. #   link FROM LIB:c.o $(OFILES) TO PrLabel LIB $(LFILES) VERBOSE
  21.  
  22. #
  23. # '.o' depends on the source file and its includes
  24. #
  25. main.o   : main.c $(IFILES)
  26.    lc $(COPT) main.c
  27. PrL.o    : PrL.c  $(IFILES)
  28.    lc $(COPT) PrL.c
  29. GetAFile.o  :  GetAFile.c
  30.    lc $(COPT) GetAFile.c
  31. MyIO.o   : MyIO.c
  32.    lc $(COPT) MyIO.c
  33. #HEATH
  34. # Uncomment these to compile Heath requester code
  35. #safeclose.o : safeclose.c
  36. #   lc $(COPT) safeclose.c
  37. #getfile.o : getfile.c
  38. #   lc $(COPT) getfile.c
  39.  
  40. #
  41. # The protos include file is recreated thus:
  42. #
  43. protos : $(PFILES)
  44.  
  45.  
  46. main_protos.h :   main.c
  47.    lc $(POPT) -omain_protos.h -pr main
  48. PrL_protos.h :   PrL.c
  49.    lc $(POPT) -oPrL_protos.h -pr PrL
  50. GetAFile_protos.h :   GetAFile.c
  51.    lc $(POPT) -oGetAFile_protos.h -pr GetAFile
  52. MyIO_protos.h :   MyIO.c
  53.    lc $(POPT) -oMyIO_protos.h -pr MyIO
  54. #
  55. #  Finally get rid of the .o files
  56. #
  57. clean :
  58.    DELETE main.o
  59.    DELETE PrL.o
  60.    DELETE GetAFile.o
  61.    DELETE MyIO.o
  62.  
  63.